package com.bjsxt.livegoods.recommendation.service.config;

import com.bjsxt.livegoods.dao.product.ProductDao;
import com.bjsxt.livegoods.dao.product.ProductDaoImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;

@Configuration
public class RecommendationConfiguration {

    @Bean
    public ProductDao productDao(MongoTemplate mongoTemplate){
        ProductDaoImpl dao=new ProductDaoImpl();
        dao.setMongoTemplate(mongoTemplate);
        return dao;
    }
}
